package com.dataseek.iot.mysql.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("用户 user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @ApiModelProperty("用户ID")
    @TableId(type = IdType.AUTO)
    private Long userInnerId;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称",required = true)
    private String nickname;
    /**
     * 密码
     */
    @ApiModelProperty(value = "用户密码",required = true)
    private String password;

    /**
     * 电话
     */
    @ApiModelProperty(value = "用户号码",required = true)
    private String tel;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "用户邮箱", required = true)
    private String mail;

    /**
     * 角色编码
     */
    @ApiModelProperty(value = "角色编码", required = true)
    private String roleId;

    /**
     * 线路编码
     */
    @ApiModelProperty(value = "线路编码")
    private String lineCode;


    @ApiModelProperty(value = "线路名称")
    private String lineName;


    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    /**
     * 补充信息
     */
    @ApiModelProperty("补充信息")
    private String comment;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", required = true)
    private byte sex;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String avatar;

    /**
     * 启用
     */
    @ApiModelProperty(value = "启用")
    private byte used;


}
